﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Edit.aspx.cs" Inherits="admin_ad_Edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        .mypanel {
            text-align: center;
            padding-top: 10px;
            margin-top: 10px;
            border-top: solid 1px #ccc;
        }
 
            .mypanel .mybutton {
                display: inline-block;
                *display: inline;
                margin-right: 10px;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <f:PageManager ID="PageManage1" runat="server" />
    <f:Form Width="410px" BodyPadding="5px" ID="Form2" LabelWidth="100px" EnableFrame="false"
        EnableCollapse="true" runat="server" Title="表单" ShowBorder="false" ShowHeader="false">
        <Rows>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="tbxName" runat="server" Label="名称:" Required="true" ShowRedStar="true">
                    </f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:Image ID="imgPhoto" CssClass="photo" Label="Logo" ImageUrl="" ShowEmptyLabel="true"
                        ImageWidth="100px" ImageHeight="90px" runat="server" ShowRedStar="true">
                    </f:Image>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:FileUpload runat="server" ID="filePhoto" ShowRedStar="false" ShowEmptyLabel="true"
                        ButtonText="上传Logo" ButtonOnly="true" AutoPostBack="true" OnFileSelected="tupan">
                    </f:FileUpload>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="tbxurl" runat="server" Label="链接地址:" Required="true" ShowRedStar="true">
                    </f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="tbxpx" runat="server" Label="排序:" Required="true" ShowRedStar="true">
                    </f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="tbxbz" runat="server" Label="备注:">
                    </f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow>
                <Items>
                    <f:Panel ID="Panel1" runat="server" ShowBorder="false" CssClass="mypanel" ShowHeader="false">
                        <Items>
                            <f:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" CssClass="mybutton"
                                ValidateForms="Form2">
                            </f:Button>
                        </Items>
                    </f:Panel>
                </Items>
            </f:FormRow>
        </Rows>
    </f:Form>
    </form>
</body>
</html>
